package cn.lee.share.pojo;

import java.util.Arrays;

public class Directory {
    private String uri;
    private String parentFolder;
    private String[] fileNames;
    public String getUri() {
        return uri;
    }
    public void setUri(String uri) {
        this.uri = uri;
    }
    public String[] getFileNames() {
        return fileNames;
    }
    public void setFileNames(String[] fileNames) {
        this.fileNames = fileNames;
    }
    
    
    
    public String getParentFolder() {
        return parentFolder;
    }
    public void setParentFolder(String parentFolder) {
        this.parentFolder = parentFolder;
    }
    /**
     * if this directory exists, return true, otherwise, return false
     * @return
     */
    public boolean exists(){
        return fileNames != null;
    }
    public String toString() {
        return "Directory [uri=" + uri + ", fileNames="
                + Arrays.toString(fileNames) + "]";
    }
    
}
